Accomodate ia64-xenolinux change where xen-public is symlinked to
authorfred@xuni-t01.sc.intel.com <fred@xuni-t01.sc.intel.com>
Tue, 9 Aug 2005 10:32:52 +0000 (02:32 -0800)
committerfred@xuni-t01.sc.intel.com <fred@xuni-t01.sc.intel.com>
Tue, 9 Aug 2005 10:32:52 +0000 (02:32 -0800)
xen source now.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

xen/arch/ia64/Rules.mk
xen/include/public/arch-ia64.h

index 69a78471b29ad69d6b9df4e60d2804fce76f80c8..f27b886c70c6720977f51c03ef295f31580d307b 100644 (file)
@@ -22,7 +22,7 @@ CFLAGS  += -I$(BASEDIR)/include/asm-ia64 -I$(BASEDIR)/include/asm-ia64/linux \
            -I$(BASEDIR)/include/asm-ia64/linux-xen                     \
            -I$(BASEDIR)/arch/ia64/linux -I$(BASEDIR)/arch/ia64/linux-xen
 CFLAGS  += -Wno-pointer-arith -Wredundant-decls
-CFLAGS  += -DIA64 -DXEN -DLINUX_2_6
+CFLAGS  += -DIA64 -DXEN -DLINUX_2_6 -DXEN_HYPERVISOR
 CFLAGS += -ffixed-r13 -mfixed-range=f12-f15,f32-f127
 CFLAGS += -w -g
 ifeq ($(CONFIG_VTI),y)
index 750ec7fae7d537feb3acc50e2c03aa1da0ef03a2..32a43062f3535a9b9bf29d9b7a796a7597a48b21 100644 (file)
@@ -57,7 +57,11 @@ struct pt_fpreg {
         } u;
 };
 
+#ifdef XEN_HYPERVISOR
 struct pt_regs {
+#else
+struct xen_pt_regs {
+#endif
        /* The following registers are saved by SAVE_MIN: */
        unsigned long b6;               /* scratch */
        unsigned long b7;               /* scratch */
@@ -274,7 +278,11 @@ typedef struct vcpu_guest_context {
        unsigned long vm_assist;   /* VMASST_TYPE_* bitmap, now none on IPF */
        unsigned long guest_iip;   /* Guest entry point */
 
+#ifdef XEN_HYPERVISOR
        struct pt_regs regs;
+#else
+       struct xen_pt_regs regs;
+#endif
        arch_vcpu_info_t vcpu;
        arch_shared_info_t shared;
 } vcpu_guest_context_t;